//
//  NSArray+JRMASShorthandAdditions.h
//  JRMASonry
//
//  Created by Jonas Budelmann on 22/07/13.
//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.
//

#import "NSArray+JRMASAdditions.h"

#ifdef JRMAS_SHORTHAND

/**
 *	Shorthand array additions without the 'JRMAS_' prefixes,
 *  only enabled if JRMAS_SHORTHAND is defined
 */
@interface NSArray (JRMASShorthandAdditions)

- (NSArray *)makeConstraints:(void(^)(JRMASConstraintMaker *make))block;
- (NSArray *)updateConstraints:(void(^)(JRMASConstraintMaker *make))block;
- (NSArray *)remakeConstraints:(void(^)(JRMASConstraintMaker *make))block;

@end

@implementation NSArray (JRMASShorthandAdditions)

- (NSArray *)makeConstraints:(void(^)(JRMASConstraintMaker *))block {
    return [self JRMAS_makeConstraints:block];
}

- (NSArray *)updateConstraints:(void(^)(JRMASConstraintMaker *))block {
    return [self JRMAS_updateConstraints:block];
}

- (NSArray *)remakeConstraints:(void(^)(JRMASConstraintMaker *))block {
    return [self JRMAS_remakeConstraints:block];
}

@end

#endif
